.class Lcom/waiqin365/h5/ui/a;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic a:Lcom/waiqin365/h5/ui/WqDateSelectUI;


# direct methods
.method constructor <init>(Lcom/waiqin365/h5/ui/WqDateSelectUI;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/h5/ui/a;->a:Lcom/waiqin365/h5/ui/WqDateSelectUI;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 5

    const/4 v0, 0x0

    iget-object v1, p0, Lcom/waiqin365/h5/ui/a;->a:Lcom/waiqin365/h5/ui/WqDateSelectUI;

    invoke-static {v1}, Lcom/waiqin365/h5/ui/WqDateSelectUI;->a(Lcom/waiqin365/h5/ui/WqDateSelectUI;)Lorg/apache/cordova/CordovaArgs;

    move-result-object v1

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/waiqin365/h5/ui/a;->a:Lcom/waiqin365/h5/ui/WqDateSelectUI;

    invoke-static {v1}, Lcom/waiqin365/h5/ui/WqDateSelectUI;->a(Lcom/waiqin365/h5/ui/WqDateSelectUI;)Lorg/apache/cordova/CordovaArgs;

    move-result-object v1

    invoke-virtual {v1, v0}, Lorg/apache/cordova/CordovaArgs;->isNull(I)Z

    move-result v1

    if-nez v1, :cond_0

    :try_start_0
    iget-object v1, p0, Lcom/waiqin365/h5/ui/a;->a:Lcom/waiqin365/h5/ui/WqDateSelectUI;

    invoke-static {v1}, Lcom/waiqin365/h5/ui/WqDateSelectUI;->a(Lcom/waiqin365/h5/ui/WqDateSelectUI;)Lorg/apache/cordova/CordovaArgs;

    move-result-object v1

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Lorg/apache/cordova/CordovaArgs;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_0

    new-instance v2, Lorg/json/JSONObject;

    invoke-direct {v2, v1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    const-string/jumbo v1, "dateType"

    invoke-virtual {v2, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_1

    move-result-object v1

    :try_start_1
    invoke-static {v1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
    :try_end_1
    .catch Ljava/lang/NumberFormatException; {:try_start_1 .. :try_end_1} :catch_0
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_1

    move-result v0

    :goto_0
    :try_start_2
    iget-object v1, p0, Lcom/waiqin365/h5/ui/a;->a:Lcom/waiqin365/h5/ui/WqDateSelectUI;

    const-string/jumbo v3, "dateInit"

    invoke-virtual {v2, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Lcom/waiqin365/h5/ui/WqDateSelectUI;->a(Lcom/waiqin365/h5/ui/WqDateSelectUI;Ljava/lang/String;)Ljava/lang/String;

    iget-object v1, p0, Lcom/waiqin365/h5/ui/a;->a:Lcom/waiqin365/h5/ui/WqDateSelectUI;

    invoke-static {v1}, Lcom/waiqin365/h5/ui/WqDateSelectUI;->b(Lcom/waiqin365/h5/ui/WqDateSelectUI;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/waiqin365/h5/ui/a;->a:Lcom/waiqin365/h5/ui/WqDateSelectUI;

    const-string/jumbo v2, ""

    invoke-static {v1, v2}, Lcom/waiqin365/h5/ui/WqDateSelectUI;->a(Lcom/waiqin365/h5/ui/WqDateSelectUI;Ljava/lang/String;)Ljava/lang/String;
    :try_end_2
    .catch Lorg/json/JSONException; {:try_start_2 .. :try_end_2} :catch_1

    :cond_0
    :goto_1
    new-instance v1, Landroid/os/Message;

    invoke-direct {v1}, Landroid/os/Message;-><init>()V

    const/16 v2, 0x1233

    iput v2, v1, Landroid/os/Message;->what:I

    new-instance v2, Landroid/os/Bundle;

    invoke-direct {v2}, Landroid/os/Bundle;-><init>()V

    const-string/jumbo v3, "dateInit"

    iget-object v4, p0, Lcom/waiqin365/h5/ui/a;->a:Lcom/waiqin365/h5/ui/WqDateSelectUI;

    invoke-static {v4}, Lcom/waiqin365/h5/ui/WqDateSelectUI;->b(Lcom/waiqin365/h5/ui/WqDateSelectUI;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    const-string/jumbo v3, "dateType"

    invoke-virtual {v2, v3, v0}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    iput-object v2, v1, Landroid/os/Message;->obj:Ljava/lang/Object;

    iget-object v0, p0, Lcom/waiqin365/h5/ui/a;->a:Lcom/waiqin365/h5/ui/WqDateSelectUI;

    invoke-static {v0}, Lcom/waiqin365/h5/ui/WqDateSelectUI;->c(Lcom/waiqin365/h5/ui/WqDateSelectUI;)Lorg/apache/cordova/WqCordovaActivity;

    move-result-object v0

    iget-object v0, v0, Lorg/apache/cordova/WqCordovaActivity;->mHandler:Landroid/os/Handler;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    return-void

    :catch_0
    move-exception v1

    :try_start_3
    invoke-virtual {v1}, Ljava/lang/NumberFormatException;->printStackTrace()V
    :try_end_3
    .catch Lorg/json/JSONException; {:try_start_3 .. :try_end_3} :catch_1

    goto :goto_0

    :catch_1
    move-exception v1

    invoke-virtual {v1}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_1
.end method
